#include "tcpip_init.h"
#include "log/log.h"

namespace secsmart_tcpip
{

void tcpip_init_log(base_logger_sptr logger)
{
    TCPIP_LOG_INIT(logger);
    TCPIP_LOG_SETLEVEL(level::logger_level::info, true);
}

void tcpip_set_log_level(int level, bool trace_func)
{
    TCPIP_LOG_SETLEVEL((level::logger_level)level, trace_func);
}

void tcpip_get_log_level(int &level, bool &trace_func) 
{
    TCPIP_LOG_GETLEVEL(level, trace_func);
}

int tcpip_init(base_logger_sptr logger)
{
    tcpip_init_log(logger);
    // ...
    return 0;
}

}